package com.lengmomo.games.pojo.po;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author lengmomo
 * @Date 2023/11/14 9:24
 * @Version 1.0
 */
@Data@Accessors(chain = true)
public class ChessMessage implements Serializable {
    private String type;//消息类型 0获取sessionId
    private String msg;//
    private String from;
    private String to;

    private Map<String,String> typeMap = new HashMap<>();
    {
        typeMap.put("0","返回当前用户id");
        typeMap.put("1","申请加入对局");
        typeMap.put("2","接受申请");
        typeMap.put("3","不接受申请");
        typeMap.put("4","离开对局");
        typeMap.put("5","移动棋子");
        typeMap.put("6","对战前准备（数据同步）");
    }
}


